package cn.bgs.pojo;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 车位编号表
 * </p>
 *
 * @author cf
 * @since 2022-06-07
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="VehicleNumber对象", description="车位编号表")
public class VehicleNumber implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车位编号自增id")
    private Integer vehicleNumberId;

    @ApiModelProperty(value = "小区id")
    private Integer communityId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "车位区域表id")
    private Integer vehicleAreaId;

    @ApiModelProperty(value = "编号（01）")
    private String serialNumber;

    @ApiModelProperty(value = "类型（私有、租赁）")
    private String vehicelType;

    @ApiModelProperty(value = "是否购买月卡（是、否）")
    private String type;

    @ApiModelProperty(value = "审核状态（成功、认证中、失败）")
    private String auditState;

    @ApiModelProperty(value = "车位状态（已绑定，未绑定，审核中）")
    private String vehicleState;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;


}
